<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/class/addClassInfo.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\index.html">All files</a> / <a href="index.html">src/components/class</a> addClassInfo.vue
    </h1>
    <div class='clearfix'>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
    &lt;div class="addClass"&gt;
        &lt;el-dialog
            title="提示"
            :visible.sync="centerDialogVisible"
            width="50%"
            center
            :before-close="handleClose"
        &gt;
            &lt;div class="content"&gt;
                &lt;el-form
                    ref="formBox"
                    :model="form"
                    :rules="rules"
                    label-width="80px"
                &gt;
                    &lt;el-form-item label="班级名称" prop="className"&gt;
                        &lt;el-input v-model="form.className"&gt;&lt;/el-input&gt;
                    &lt;/el-form-item&gt;
                    &lt;el-form-item label="专业名称" prop="classMajor"&gt;
                        &lt;el-select
                            v-model="form.classMajor"
                            placeholder="请选择专业"
                        &gt;
                            &lt;el-option
                                v-for="i in regionSel"
                                :key="i.majorNum"
                                :label="i.majorName"
                                :value="i.majorNum"
                            &gt;&lt;/el-option&gt;
                        &lt;/el-select&gt;
                    &lt;/el-form-item&gt;
                    &lt;el-form-item label="班级人数" prop="classNum"&gt;
                        &lt;el-input v-model="form.classNum"&gt;&lt;/el-input&gt;
                    &lt;/el-form-item&gt;
&nbsp;
                    &lt;el-form-item label="辅导员" prop="classInstructo"&gt;
                        &lt;el-input v-model="form.classInstructo"&gt;&lt;/el-input&gt;
                    &lt;/el-form-item&gt;
                    &lt;el-form-item label="开班日期" prop="classStareDate"&gt;
                        &lt;!-- &lt;el-date-picker
                            type="date"
                            placeholder="选择日期"
                            v-model="form.classStareDate"
                            style="width: 100%"
                        &gt;&lt;/el-date-picker&gt; --&gt;
                        &lt;el-date-picker
                            v-model="form.classStareDate"
                            type="date"
                            placeholder="选择日期"
                            value-format="yyyy-MM-dd"
                        &gt;
                        &lt;/el-date-picker&gt;
                    &lt;/el-form-item&gt;
                    &lt;el-form-item label="学制" prop="classLength"&gt;
                        &lt;el-radio-group v-model="form.classLength"&gt;
                            &lt;el-radio label="0"&gt;三年&lt;/el-radio&gt;
                            &lt;el-radio label="1"&gt;四年&lt;/el-radio&gt;
                        &lt;/el-radio-group&gt;
                    &lt;/el-form-item&gt;
                    &lt;el-form-item label="专题" prop="classStatus"&gt;
                        &lt;el-radio-group v-model="form.classStatus"&gt;
                            &lt;el-radio label="0"&gt;未开班&lt;/el-radio&gt;
                            &lt;el-radio label="1"&gt;开班&lt;/el-radio&gt;
                        &lt;/el-radio-group&gt;
                    &lt;/el-form-item&gt;
                &lt;/el-form&gt;
            &lt;/div&gt;
            &lt;span slot="footer" class="dialog-footer"&gt;
                &lt;el-button @click="sub(0)"&gt;取 消&lt;/el-button&gt;
                &lt;el-button type="primary" @click="sub(1)"&gt;确 定&lt;/el-button&gt;
            &lt;/span&gt;
        &lt;/el-dialog&gt;
    &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
<span class="cstat-no" title="statement not covered" >import { addClassInfo, updateClassInfo } from "../../api/classApi";</span>
export default {
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >        return {</span>
            centerDialogVisible: false,
            form: {
                classMajor: "",
                className: "",
                classNum: "",
                classInstructo: "",
                classStareDate: "",
                classLength: "",
                classStatus: "",
            },
            rules: {
                teacNum: [
                    {
                        required: true,
                        message: "请填写用户姓名",
                        trigger: "blur",
                    },
                ],
            },
            data: [],
            defaultProps: {
                children: "children",
                label: "label",
            },
            regionSel: [
                {
                    majorNum: "001",
                    majorName: "计算机",
                },
                {
                    majorNum: "002",
                    majorName: "音乐",
                },
                {
                    majorNum: "003",
                    majorName: "法律",
                },
            ],
        };
    },
    props: {
        isShow: {
            type: Boolean,
            default: false,
        },
        classInfo: {
            type: Object,
            default: null,
        },
    },
    watch: {
<span class="fstat-no" title="function not covered" >        isShow(n, o) {</span>
<span class="cstat-no" title="statement not covered" >            this.centerDialogVisible = n;</span>
        },
<span class="fstat-no" title="function not covered" >        classInfo(n, o) {</span>
<span class="cstat-no" title="statement not covered" >            console.log(n);</span>
<span class="cstat-no" title="statement not covered" >            if (n == null) {</span>
<span class="cstat-no" title="statement not covered" >                this.form = {</span>
                    teacNum: "",
                    teacName: "",
                    teacTitle: "",
                    teacCompile: "",
                    teacAge: "",
                };
            } else {
<span class="cstat-no" title="statement not covered" >                n.isStatus = n.isStatus == "1" ? false : true;</span>
<span class="cstat-no" title="statement not covered" >                this.form = n;</span>
            }
        },
    },
<span class="fstat-no" title="function not covered" >    created() {},</span>
    methods: {
        //提交关闭按钮
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        sub(t) {</span></span>
<span class="cstat-no" title="statement not covered" >            if (t == 1) {</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                this.$refs.formBox.validate((valid) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >                    if (valid) {</span>
                        //加载
<span class="cstat-no" title="statement not covered" >                        const loading = this.$loading({</span>
                            lock: true,
                            text: "Loading",
                            spinner: "el-icon-loading",
                            background: "rgba(0, 0, 0, 0.7)",
                        });
                        // this.form.isStatus = this.form.isStatus ? "0" : "1";
                        // console.log(this.form);
                        // loading.close();
<span class="cstat-no" title="statement not covered" >                        if (this.form.id == undefined || this.form.id == "") {</span>
                            //添加
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                            addClassInfo(this.form).then((res) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >                                console.log("add", res);</span>
<span class="cstat-no" title="statement not covered" >                                this.resetFun();</span>
<span class="cstat-no" title="statement not covered" >                                this.$emit("refreshBox");</span>
<span class="cstat-no" title="statement not covered" >                                loading.close();</span>
                            });
                        } else {
                            //更新
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >                            updateClassInfo(this.form).then((res) =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >                                console.log("update", res);</span>
<span class="cstat-no" title="statement not covered" >                                this.resetFun();</span>
<span class="cstat-no" title="statement not covered" >                                this.$emit("refreshBox");</span>
<span class="cstat-no" title="statement not covered" >                                loading.close();</span>
                            });
                        }
                    } else {
<span class="cstat-no" title="statement not covered" >                        console.log("error submit!!");</span>
<span class="cstat-no" title="statement not covered" >                        return false;</span>
                    }
                });
            } else {
<span class="cstat-no" title="statement not covered" >                this.centerDialogVisible = false;</span>
<span class="cstat-no" title="statement not covered" >                this.$emit("show");</span>
<span class="cstat-no" title="statement not covered" >                console.log("no");</span>
            }
        },
<span class="fstat-no" title="function not covered" >        handleClose(done) {</span>
<span class="cstat-no" title="statement not covered" >            this.centerDialogVisible = false;</span>
<span class="cstat-no" title="statement not covered" >            this.$emit("show");</span>
        },
        //重置表单
<span class="fstat-no" title="function not covered" >        resetFun() {</span>
<span class="cstat-no" title="statement not covered" >            this.$refs.formBox.$el.reset();</span>
<span class="cstat-no" title="statement not covered" >            this.form.isStatus = true;</span>
<span class="cstat-no" title="statement not covered" >            this.centerDialogVisible = false;</span>
<span class="cstat-no" title="statement not covered" >            this.$emit("show");</span>
        },
    },
};
&lt;/script&gt;
&nbsp;
&lt;style lang="scss" scoped&gt;
.addClass {
    .content {
        .el-form {
            .el-form-item:last-child {
                .el-tree {
                    max-height: 200px;
                    overflow: auto;
                    padding: 10px 0;
                }
            }
        }
    }
}
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Wed Dec 14 2022 21:15:29 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\sorter.js"></script>
</body>
</html>
